/*    */ package com.cr.api.vo;

import io.swagger.annotations.ApiModelProperty;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Objects;

/*    */
/*    */ public class NoticeVo {
/*    */   private Long noticeId;
/*    */   @ApiModelProperty("标题")
/*    */   private String title;
/*    */   
/*    */   private Integer type;
/*    */   
/*    */   private Integer isHot;
/*    */   @ApiModelProperty("封面图")
/*    */   private String image;
/*    */
/*    */   @ApiModelProperty("封面缩略图")
/*    */   private String subImage;
/*    */   
/*    */   private String content;
/*    */   
/*    */   private Date createTime;
/*    */    private String createTimeStr;
            public String getCreateTimeStr() {
                if(Objects.nonNull(this.getCreateTime())) {
                    return new SimpleDateFormat("yyyy-MM-dd").format(this.getCreateTime());
                }
                return "";
            }
/*    */   public void setNoticeId(Long noticeId) {
/* 10 */     this.noticeId = noticeId;
/*    */   }
/*    */   
/*    */   public void setTitle(String title) {
/* 10 */     this.title = title;
/*    */   }
/*    */   
/*    */   public void setType(Integer type) {
/* 10 */     this.type = type;
/*    */   }
/*    */   
/*    */   public void setIsHot(Integer isHot) {
/* 10 */     this.isHot = isHot;
/*    */   }
/*    */   
/*    */   public void setImage(String image) {
/* 10 */     this.image = image;
/*    */   }
/*    */   
/*    */   public void setSubImage(String subImage) {
/* 10 */     this.subImage = subImage;
/*    */   }
/*    */   
/*    */   public void setContent(String content) {
/* 10 */     this.content = content;
/*    */   }
/*    */   
/*    */   public void setCreateTime(Date createTime) {
/* 10 */     this.createTime = createTime;
/*    */   }
/*    */   
/*    */   public boolean equals(Object o) {
/* 10 */     if (o == this)
/* 10 */       return true; 
/* 10 */     if (!(o instanceof NoticeVo))
/* 10 */       return false; 
/* 10 */     NoticeVo other = (NoticeVo)o;
/* 10 */     if (!other.canEqual(this))
/* 10 */       return false; 
/* 10 */     Object this$noticeId = getNoticeId(), other$noticeId = other.getNoticeId();
/* 10 */     if ((this$noticeId == null) ? (other$noticeId != null) : !this$noticeId.equals(other$noticeId))
/* 10 */       return false; 
/* 10 */     Object this$type = getType(), other$type = other.getType();
/* 10 */     if ((this$type == null) ? (other$type != null) : !this$type.equals(other$type))
/* 10 */       return false; 
/* 10 */     Object this$isHot = getIsHot(), other$isHot = other.getIsHot();
/* 10 */     if ((this$isHot == null) ? (other$isHot != null) : !this$isHot.equals(other$isHot))
/* 10 */       return false; 
/* 10 */     Object this$title = getTitle(), other$title = other.getTitle();
/* 10 */     if ((this$title == null) ? (other$title != null) : !this$title.equals(other$title))
/* 10 */       return false; 
/* 10 */     Object this$image = getImage(), other$image = other.getImage();
/* 10 */     if ((this$image == null) ? (other$image != null) : !this$image.equals(other$image))
/* 10 */       return false; 
/* 10 */     Object this$subImage = getSubImage(), other$subImage = other.getSubImage();
/* 10 */     if ((this$subImage == null) ? (other$subImage != null) : !this$subImage.equals(other$subImage))
/* 10 */       return false; 
/* 10 */     Object this$content = getContent(), other$content = other.getContent();
/* 10 */     if ((this$content == null) ? (other$content != null) : !this$content.equals(other$content))
/* 10 */       return false; 
/* 10 */     Object this$createTime = getCreateTime(), other$createTime = other.getCreateTime();
/* 10 */     return !((this$createTime == null) ? (other$createTime != null) : !this$createTime.equals(other$createTime));
/*    */   }
/*    */   
/*    */   protected boolean canEqual(Object other) {
/* 10 */     return other instanceof NoticeVo;
/*    */   }
/*    */   
/*    */   public int hashCode() {
/* 10 */     int PRIME = 59;
/* 10 */     int result = 1;
/* 10 */     Object $noticeId = getNoticeId();
/* 10 */     result = result * 59 + (($noticeId == null) ? 43 : $noticeId.hashCode());
/* 10 */     Object $type = getType();
/* 10 */     result = result * 59 + (($type == null) ? 43 : $type.hashCode());
/* 10 */     Object $isHot = getIsHot();
/* 10 */     result = result * 59 + (($isHot == null) ? 43 : $isHot.hashCode());
/* 10 */     Object $title = getTitle();
/* 10 */     result = result * 59 + (($title == null) ? 43 : $title.hashCode());
/* 10 */     Object $image = getImage();
/* 10 */     result = result * 59 + (($image == null) ? 43 : $image.hashCode());
/* 10 */     Object $subImage = getSubImage();
/* 10 */     result = result * 59 + (($subImage == null) ? 43 : $subImage.hashCode());
/* 10 */     Object $content = getContent();
/* 10 */     result = result * 59 + (($content == null) ? 43 : $content.hashCode());
/* 10 */     Object $createTime = getCreateTime();
/* 10 */     return result * 59 + (($createTime == null) ? 43 : $createTime.hashCode());
/*    */   }
/*    */   
/*    */   public String toString() {
/* 10 */     return "NoticeVo(noticeId=" + getNoticeId() + ", title=" + getTitle() + ", type=" + getType() + ", isHot=" + getIsHot() + ", image=" + getImage() + ", subImage=" + getSubImage() + ", content=" + getContent() + ", createTime=" + getCreateTime() + ")";
/*    */   }
/*    */   
/*    */   public Long getNoticeId() {
/* 14 */     return this.noticeId;
/*    */   }
/*    */   
/*    */   public String getTitle() {
/* 17 */     return this.title;
/*    */   }
/*    */   
/*    */   public Integer getType() {
/* 20 */     return this.type;
/*    */   }
/*    */   
/*    */   public Integer getIsHot() {
/* 23 */     return this.isHot;
/*    */   }
/*    */   
/*    */   public String getImage() {
/* 26 */     return this.image;
/*    */   }
/*    */   
/*    */   public String getSubImage() {
/* 29 */     return this.subImage;
/*    */   }
/*    */   
/*    */   public String getContent() {
/* 32 */     return this.content;
/*    */   }
/*    */   
/*    */   public Date getCreateTime() {
/* 36 */     return this.createTime;
/*    */   }
/*    */ }


/* Location:              D:\tmp\creditorRights-admin\BOOT-INF\lib\creditorRights-api-4.7.0.jar!\com\cr\api\vo\NoticeVo.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */